<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>My Dictionary</title>
</head>
<body>

	<h1>查询单词</h1>
	<form>
		<input type="text" name="q">
		<input type="submit" value="查询"/>
		<input type="text" name="p">
		<input type="submit" value="模糊查询"/>
	</form>
<!-- 	<form action="file:///C:/Users/伟航/Desktop/搞事/训练营/单词/" enctype="multipart/form-data" method="post" onsubmit="return true">
		<input type="file" name="file" value="上传文件"/>
		<input type="submit" value="上传"/>
	</form> -->
	
<% if(request.getParameter("q")!=null&&!"".equals(request.getParameter("q"))) {%>
	<% if(request.getAttribute("Cword") != null) {%>
	<hr/>
	<%=request.getParameter("q") %> : <%= request.getAttribute("Cword") %>
	<% } %>
<% } %>
<% if(request.getParameter("p")!=null&&!"".equals(request.getParameter("p"))) {%>
	<% if(request.getAttribute("wordList") != null) {%>
	<hr/>
	<%=request.getParameter("p") %> : <%= request.getAttribute("wordList") %>
	<% } %>
<% } %>
</body>
</html>